/**
 * 
 */
package com.appspot.newsographer.server.jdo;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManagerFactory;

/**
 * Class that create a new instance of the each request that uses datastore.
 * @author anuradha.uduwage
 *
 */
public class PMF {
	
	//storing instance on a static variable to use in multiple occasions..
	private static final PersistenceManagerFactory pmfInstance = 
		JDOHelper.getPersistenceManagerFactory("transactions-optional");
	
	private PMF() {}
	
	public static PersistenceManagerFactory get() {
		return pmfInstance;
	}

}
